package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 各项率数据
 * </p>
 *
 * @author hpiggy
 * @since 2025-04-29
 */
@Data
@TableName("rade_data")
@ApiModel(value = "RadeData对象", description = "各项率数据")
public class RadeData implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("校区id")
    private Long schoolId;

    @ApiModelProperty("课程类型")
    private Integer lessonType;

    @ApiModelProperty("0为全部科目")
    private Long subjectsId;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("统计个人的时候使用")
    private Long teacherId;

    @ApiModelProperty("统计的项目id(即哪个率的数据)")
    private Integer projectsId;

    @ApiModelProperty("fiducial_set表id")
    private Long fiducialSetId;

    @ApiModelProperty("课次")
    private Integer lessonNum;

    @ApiModelProperty("计算率的分子")
    private BigDecimal radeMolecule;

    @ApiModelProperty("计算率的分母")
    private BigDecimal radeDenominator;

    @ApiModelProperty("计算率的分子")
    private BigDecimal radeMolecule02;

    @ApiModelProperty("计算率的分母")
    private BigDecimal radeDenominator02;

    @ApiModelProperty("率值（四大校区才有）")
    private BigDecimal radeNum;

    @ApiModelProperty("统计类型，6：按四大校区，2校区老师")
    private Integer statType;

    @ApiModelProperty("排名（四大校区才有）")
    private Integer rankNum;

    @ApiModelProperty("考试名称")
    private Integer examNum;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateAt;

    @ApiModelProperty("是否删除，0正常，1删除")
    @TableLogic(value = "0", delval = "1")
    @TableField(select = false)
    private Integer deleted;


}
